package com.yicheng.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.SimpleFormatter;

//获取当前日期和周几
public class Riqi {
    public static String riqi(){
        Date date = new Date();
        SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd EEEE");
        System.out.println(sd.format(date));
        return sd.format(date);
    }
}
